package com.ruoyi.kong.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.kong.entity.KongCaCertificate;
import com.ruoyi.kong.entity.KongEntity;
import com.ruoyi.kong.service.IKongCaCertificateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/kong/ca/certificate")
public class KongCaCertificateController extends BaseController {

    @Autowired
    private IKongCaCertificateService kongCaCertificateService;


    @GetMapping("/list")
    public TableDataInfo getCaCertificates(){
        startPage();
        KongEntity<KongCaCertificate> CaCertificates = kongCaCertificateService.caCertificates();
        return getDataTable(CaCertificates.getData());
    }




}
